package fr.alma.domo.util;


public class Log {
	
	public static void e(String tag,String msg,Object ...params){
		System.out.println(String.format("[%s][ERROR] %s: ", System.currentTimeMillis(),tag)+String.format(msg,params));
	}

	public static void e(String tag,String msg,Throwable t,Object ...params){
		System.out.println(String.format("[%s][ERROR] %s: ", System.currentTimeMillis(),tag)+String.format(msg,params));
		t.printStackTrace();
	}
	
	public static void i(String tag,String msg,Object ...params){
		System.out.println(String.format("[%s][INFO] %s: ", System.currentTimeMillis(),tag)+String.format(msg,params));
	}
	
	public static void w(String tag,String msg,Object ...params){
		System.out.println(String.format("[%s][WARNING] %s: ", System.currentTimeMillis(),tag)+String.format(msg,params));
	}
	
}
